Skip to content

Update apache client 5.6 + correct gzip handling#1143

Merged
l-trotta merged 4 commits into
mainfrom
update-apache-client-gzip
Jan 21, 2026
Merged

Update apache client 5.6 + correct gzip handling#1143
l-trotta merged 4 commits into
mainfrom
update-apache-client-gzip

Conversation

@l-trotta

@l-trotta l-trotta commented Jan 21, 2026

Copy link
Copy Markdown
Contributor

Thank you @wilkinsona for suggesting the correct way to handle gzip responses and @ok2c for providing a fix for the client not retrieving entity metadata in the response consumer.

The apache httpclient5 version 5.6 introduces a change where it automatically decompresses gzip responses, leaving the original headers untouched. The java client used headers to detect gzip content, which would no longer work, this PR fixes it by checking the entity details instead of the headers.

The PR also updates the default client from httpclient5 5.4 to 5.6.

Closes #1134.

@l-trotta
l-trotta merged commit 94ac310 into main Jan 21, 2026
14 checks passed
@l-trotta
l-trotta deleted the update-apache-client-gzip branch January 21, 2026 16:33
github-actions Bot pushed a commit that referenced this pull request Jan 21, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import
github-actions Bot pushed a commit that referenced this pull request Jan 21, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import
l-trotta added a commit that referenced this pull request Jan 21, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
l-trotta added a commit that referenced this pull request Jan 21, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import

Co-authored-by: Laura Trotta <153528055+l-trotta@users.noreply.github.com>
@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown

The backport to 9.1 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.1 9.1
# Navigate to the new working tree
cd .worktrees/backport-9.1
# Create a new branch
git switch --create backport-1143-to-9.1
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 94ac310966946b128bc076df0289abc82dfe4e06
# Push it to GitHub
git push --set-upstream origin backport-1143-to-9.1
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.1

Then, create a pull request where the base branch is 9.1 and the compare/head branch is backport-1143-to-9.1.

@github-actions

github-actions Bot commented Feb 9, 2026

Copy link
Copy Markdown

The backport to 9.0 failed:

The process '/usr/bin/git' failed with exit code 1

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub
git fetch
# Create a new working tree
git worktree add .worktrees/backport-9.0 9.0
# Navigate to the new working tree
cd .worktrees/backport-9.0
# Create a new branch
git switch --create backport-1143-to-9.0
# Cherry-pick the merged commit of this pull request and resolve the conflicts
git cherry-pick --mainline 1 94ac310966946b128bc076df0289abc82dfe4e06
# Push it to GitHub
git push --set-upstream origin backport-1143-to-9.0
# Go back to the original working tree
cd ../..
# Delete the working tree
git worktree remove .worktrees/backport-9.0

Then, create a pull request where the base branch is 9.0 and the compare/head branch is backport-1143-to-9.0.

l-trotta added a commit that referenced this pull request Feb 9, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import
l-trotta added a commit that referenced this pull request Feb 9, 2026
* support new gzip

* get entity details from response

* fix gzip test

* unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incompatibility with Apache Http Client 5.6

1 participant